<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta charset="utf-8"/>
<title>Quản lí thành viên</title>
<link rel="stylesheet" href="Css/cc.css"></link>
</head>
<body>
<div class="wrapper">
<?php include 'connect.php';?>
<?php include 'menu.php';?>
<div class="content">
    <?php 
            $querymember = $con->query("select * from members");
        ?>
    <div>
        <table border="1" width="95%" style="margin: 20px auto">
            <th>STT</th><th>Username</th><th>Password</th><th>Name</th><th>Admin</th><th>Option</th>
        <?php
        $i=1;
        while ($value = mysqli_fetch_array($querymember)){ ?>
            <tr>
                <td width="5%"><?php echo $i ?></td><td width="15%"><?php echo $value['user'] ?></td><td width="30%"><?php echo $value['pass'] ?></td><td width="15%"><?php echo $value['name'] ?></td><td width="5%"><?php echo $value['admin'] ?></td><td width="30%"><a href="delete.php?xoa=<?php echo $value['user'];?>">Xóa</a> / <a href="update.php?c=<?php echo $value['user'] ;?>">Cập nhật</a></td>
            </tr>
            <?php $i++; } ?>
        </table>
    </div>
    <a href="register.php">Tạo mới</a> / <a href="javascript:history.go(-1)">Quay lại</a>
</div>
<div class="footer">
We are... Mr.Chuot Tru, Mr.Minh Ho
<hr  width="20%" style="margin-left:40%; margin-top:8px;"/>
<pre><br /><br />
Coppyright: Aitieducation
</pre>
</div>
</div>
</div>
</body>
</html>
</html>